3.1.32 \(\int x^2 (d+i c d x)^4 (a+b \text {ArcTan}(c x)) \, dx\) [32]

Optimal. Leaf size=193 \[ \frac {5 i b d^4 x}{3 c^2}-\frac {88 b d^4 x^2}{105 c}-\frac {5}{9} i b d^4 x^3+\frac {47}{140} b c d^4 x^4+\frac {2}{15} i b c^2 d^4 x^5-\frac {1}{42} b c^3 d^4 x^6+\frac {i d^4 (1+i c x)^5 (a+b \text {ArcTan}(c x))}{5 c^3}-\frac {i d^4 (1+i c x)^6 (a+b \text {ArcTan}(c x))}{3 c^3}+\frac {i d^4 (1+i c x)^7 (a+b \text {ArcTan}(c x))}{7 c^3}+\frac {176 b d^4 \log (i+c x)}{105 c^3} \]

[Out]

5/3*I*b*d^4*x/c^2-88/105*b*d^4*x^2/c-5/9*I*b*d^4*x^3+47/140*b*c*d^4*x^4+2/15*I*b*c^2*d^4*x^5-1/42*b*c^3*d^4*x^
6+1/5*I*d^4*(1+I*c*x)^5*(a+b*arctan(c*x))/c^3-1/3*I*d^4*(1+I*c*x)^6*(a+b*arctan(c*x))/c^3+1/7*I*d^4*(1+I*c*x)^
7*(a+b*arctan(c*x))/c^3+176/105*b*d^4*ln(c*x+I)/c^3

________________________________________________________________________________________

Rubi [A]
time = 0.13, antiderivative size = 193, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {45, 4992, 12, 907} \begin {gather*} \frac {i d^4 (1+i c x)^7 (a+b \text {ArcTan}(c x))}{7 c^3}-\frac {i d^4 (1+i c x)^6 (a+b \text {ArcTan}(c x))}{3 c^3}+\frac {i d^4 (1+i c x)^5 (a+b \text {ArcTan}(c x))}{5 c^3}-\frac {1}{42} b c^3 d^4 x^6+\frac {176 b d^4 \log (c x+i)}{105 c^3}+\frac {2}{15} i b c^2 d^4 x^5+\frac {5 i b d^4 x}{3 c^2}+\frac {47}{140} b c d^4 x^4-\frac {88 b d^4 x^2}{105 c}-\frac {5}{9} i b d^4 x^3 \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x^2*(d + I*c*d*x)^4*(a + b*ArcTan[c*x]),x]

[Out]

(((5*I)/3)*b*d^4*x)/c^2 - (88*b*d^4*x^2)/(105*c) - ((5*I)/9)*b*d^4*x^3 + (47*b*c*d^4*x^4)/140 + ((2*I)/15)*b*c
^2*d^4*x^5 - (b*c^3*d^4*x^6)/42 + ((I/5)*d^4*(1 + I*c*x)^5*(a + b*ArcTan[c*x]))/c^3 - ((I/3)*d^4*(1 + I*c*x)^6
*(a + b*ArcTan[c*x]))/c^3 + ((I/7)*d^4*(1 + I*c*x)^7*(a + b*ArcTan[c*x]))/c^3 + (176*b*d^4*Log[I + c*x])/(105*
c^3)

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 45

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 907

Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))^(n_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :
> Int[ExpandIntegrand[(d + e*x)^m*(f + g*x)^n*(a + b*x + c*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] &
& NeQ[e*f - d*g, 0] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0] && IntegerQ[p] && ((EqQ[p, 1] && I
ntegersQ[m, n]) || (ILtQ[m, 0] && ILtQ[n, 0]))

Rule 4992

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))*((f_.)*(x_))^(m_.)*((d_.) + (e_.)*(x_))^(q_.), x_Symbol] :> With[{u = I
ntHide[(f*x)^m*(d + e*x)^q, x]}, Dist[a + b*ArcTan[c*x], u, x] - Dist[b*c, Int[SimplifyIntegrand[u/(1 + c^2*x^
2), x], x], x]] /; FreeQ[{a, b, c, d, e, f, q}, x] && NeQ[q, -1] && IntegerQ[2*m] && ((IGtQ[m, 0] && IGtQ[q, 0
]) || (ILtQ[m + q + 1, 0] && LtQ[m*q, 0]))

Rubi steps

\begin {align*} \int x^2 (d+i c d x)^4 \left (a+b \tan ^{-1}(c x)\right ) \, dx &=\frac {i d^4 (1+i c x)^5 \left (a+b \tan ^{-1}(c x)\right )}{5 c^3}-\frac {i d^4 (1+i c x)^6 \left (a+b \tan ^{-1}(c x)\right )}{3 c^3}+\frac {i d^4 (1+i c x)^7 \left (a+b \tan ^{-1}(c x)\right )}{7 c^3}-(b c) \int \frac {d^4 (i-c x)^4 \left (-1+5 i c x+15 c^2 x^2\right )}{105 c^3 (i+c x)} \, dx\\ &=\frac {i d^4 (1+i c x)^5 \left (a+b \tan ^{-1}(c x)\right )}{5 c^3}-\frac {i d^4 (1+i c x)^6 \left (a+b \tan ^{-1}(c x)\right )}{3 c^3}+\frac {i d^4 (1+i c x)^7 \left (a+b \tan ^{-1}(c x)\right )}{7 c^3}-\frac {\left (b d^4\right ) \int \frac {(i-c x)^4 \left (-1+5 i c x+15 c^2 x^2\right )}{i+c x} \, dx}{105 c^2}\\ &=\frac {i d^4 (1+i c x)^5 \left (a+b \tan ^{-1}(c x)\right )}{5 c^3}-\frac {i d^4 (1+i c x)^6 \left (a+b \tan ^{-1}(c x)\right )}{3 c^3}+\frac {i d^4 (1+i c x)^7 \left (a+b \tan ^{-1}(c x)\right )}{7 c^3}-\frac {\left (b d^4\right ) \int \left (-175 i+176 c x+175 i c^2 x^2-141 c^3 x^3-70 i c^4 x^4+15 c^5 x^5-\frac {176}{i+c x}\right ) \, dx}{105 c^2}\\ &=\frac {5 i b d^4 x}{3 c^2}-\frac {88 b d^4 x^2}{105 c}-\frac {5}{9} i b d^4 x^3+\frac {47}{140} b c d^4 x^4+\frac {2}{15} i b c^2 d^4 x^5-\frac {1}{42} b c^3 d^4 x^6+\frac {i d^4 (1+i c x)^5 \left (a+b \tan ^{-1}(c x)\right )}{5 c^3}-\frac {i d^4 (1+i c x)^6 \left (a+b \tan ^{-1}(c x)\right )}{3 c^3}+\frac {i d^4 (1+i c x)^7 \left (a+b \tan ^{-1}(c x)\right )}{7 c^3}+\frac {176 b d^4 \log (i+c x)}{105 c^3}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.07, size = 170, normalized size = 0.88 \begin {gather*} \frac {d^4 \left (12 a c^3 x^3 \left (35+105 i c x-126 c^2 x^2-70 i c^3 x^3+15 c^4 x^4\right )+b c x \left (2100 i-1056 c x-700 i c^2 x^2+423 c^3 x^3+168 i c^4 x^4-30 c^5 x^5\right )+12 b \left (-175 i+35 c^3 x^3+105 i c^4 x^4-126 c^5 x^5-70 i c^6 x^6+15 c^7 x^7\right ) \text {ArcTan}(c x)+1056 b \log \left (1+c^2 x^2\right )\right )}{1260 c^3} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x^2*(d + I*c*d*x)^4*(a + b*ArcTan[c*x]),x]

[Out]

(d^4*(12*a*c^3*x^3*(35 + (105*I)*c*x - 126*c^2*x^2 - (70*I)*c^3*x^3 + 15*c^4*x^4) + b*c*x*(2100*I - 1056*c*x -
 (700*I)*c^2*x^2 + 423*c^3*x^3 + (168*I)*c^4*x^4 - 30*c^5*x^5) + 12*b*(-175*I + 35*c^3*x^3 + (105*I)*c^4*x^4 -
 126*c^5*x^5 - (70*I)*c^6*x^6 + 15*c^7*x^7)*ArcTan[c*x] + 1056*b*Log[1 + c^2*x^2]))/(1260*c^3)

________________________________________________________________________________________

Maple [A]
time = 0.11, size = 234, normalized size = 1.21

method result size
derivativedivides \(\frac {d^{4} a \left (\frac {1}{7} c^{7} x^{7}-\frac {2}{3} i c^{6} x^{6}-\frac {6}{5} c^{5} x^{5}+i c^{4} x^{4}+\frac {1}{3} c^{3} x^{3}\right )+\frac {d^{4} b \arctan \left (c x \right ) c^{7} x^{7}}{7}-\frac {2 i d^{4} b \arctan \left (c x \right ) c^{6} x^{6}}{3}-\frac {6 d^{4} b \arctan \left (c x \right ) c^{5} x^{5}}{5}+i d^{4} b \arctan \left (c x \right ) c^{4} x^{4}+\frac {d^{4} b \arctan \left (c x \right ) c^{3} x^{3}}{3}+\frac {5 i d^{4} b c x}{3}-\frac {d^{4} b \,c^{6} x^{6}}{42}+\frac {2 i d^{4} b \,c^{5} x^{5}}{15}+\frac {47 d^{4} b \,c^{4} x^{4}}{140}-\frac {5 i d^{4} b \,c^{3} x^{3}}{9}-\frac {88 d^{4} b \,c^{2} x^{2}}{105}+\frac {88 b \ln \left (c^{2} x^{2}+1\right ) d^{4}}{105}-\frac {5 i d^{4} b \arctan \left (c x \right )}{3}}{c^{3}}\) \(234\)
default \(\frac {d^{4} a \left (\frac {1}{7} c^{7} x^{7}-\frac {2}{3} i c^{6} x^{6}-\frac {6}{5} c^{5} x^{5}+i c^{4} x^{4}+\frac {1}{3} c^{3} x^{3}\right )+\frac {d^{4} b \arctan \left (c x \right ) c^{7} x^{7}}{7}-\frac {2 i d^{4} b \arctan \left (c x \right ) c^{6} x^{6}}{3}-\frac {6 d^{4} b \arctan \left (c x \right ) c^{5} x^{5}}{5}+i d^{4} b \arctan \left (c x \right ) c^{4} x^{4}+\frac {d^{4} b \arctan \left (c x \right ) c^{3} x^{3}}{3}+\frac {5 i d^{4} b c x}{3}-\frac {d^{4} b \,c^{6} x^{6}}{42}+\frac {2 i d^{4} b \,c^{5} x^{5}}{15}+\frac {47 d^{4} b \,c^{4} x^{4}}{140}-\frac {5 i d^{4} b \,c^{3} x^{3}}{9}-\frac {88 d^{4} b \,c^{2} x^{2}}{105}+\frac {88 b \ln \left (c^{2} x^{2}+1\right ) d^{4}}{105}-\frac {5 i d^{4} b \arctan \left (c x \right )}{3}}{c^{3}}\) \(234\)
risch \(-\frac {3 i d^{4} c^{2} b \,x^{5} \ln \left (-i c x +1\right )}{5}+\frac {i d^{4} c^{4} b \,x^{7} \ln \left (-i c x +1\right )}{14}+\frac {d^{4} c^{4} a \,x^{7}}{7}-\frac {i d^{4} b \left (15 c^{4} x^{7}-70 i c^{3} x^{6}-126 c^{2} x^{5}+105 i c \,x^{4}+35 x^{3}\right ) \ln \left (i c x +1\right )}{210}+\frac {d^{4} c^{3} b \,x^{6} \ln \left (-i c x +1\right )}{3}+\frac {2 i b \,c^{2} d^{4} x^{5}}{15}-\frac {b \,c^{3} d^{4} x^{6}}{42}-\frac {2 i d^{4} c^{3} a \,x^{6}}{3}-\frac {6 d^{4} c^{2} a \,x^{5}}{5}+\frac {i d^{4} b \,x^{3} \ln \left (-i c x +1\right )}{6}-\frac {d^{4} c b \,x^{4} \ln \left (-i c x +1\right )}{2}+i d^{4} c a \,x^{4}+\frac {47 b c \,d^{4} x^{4}}{140}-\frac {5 i b \,d^{4} x^{3}}{9}+\frac {d^{4} a \,x^{3}}{3}-\frac {88 b \,d^{4} x^{2}}{105 c}-\frac {5 i d^{4} b \arctan \left (c x \right )}{3 c^{3}}+\frac {5 i b \,d^{4} x}{3 c^{2}}+\frac {88 d^{4} b \ln \left (c^{2} x^{2}+1\right )}{105 c^{3}}\) \(311\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*(d+I*c*d*x)^4*(a+b*arctan(c*x)),x,method=_RETURNVERBOSE)

[Out]

1/c^3*(d^4*a*(1/7*c^7*x^7-2/3*I*c^6*x^6-6/5*c^5*x^5+I*c^4*x^4+1/3*c^3*x^3)+1/7*d^4*b*arctan(c*x)*c^7*x^7-2/3*I
*d^4*b*arctan(c*x)*c^6*x^6-6/5*d^4*b*arctan(c*x)*c^5*x^5+I*d^4*b*arctan(c*x)*c^4*x^4+1/3*d^4*b*arctan(c*x)*c^3
*x^3+5/3*I*d^4*b*c*x-1/42*d^4*b*c^6*x^6+2/15*I*d^4*b*c^5*x^5+47/140*d^4*b*c^4*x^4-5/9*I*d^4*b*c^3*x^3-88/105*d
^4*b*c^2*x^2+88/105*b*ln(c^2*x^2+1)*d^4-5/3*I*d^4*b*arctan(c*x))

________________________________________________________________________________________

Maxima [B] Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 318 vs. \(2 (153) = 306\).
time = 0.47, size = 318, normalized size = 1.65 \begin {gather*} \frac {1}{7} \, a c^{4} d^{4} x^{7} - \frac {2}{3} i \, a c^{3} d^{4} x^{6} - \frac {6}{5} \, a c^{2} d^{4} x^{5} + \frac {1}{84} \, {\left (12 \, x^{7} \arctan \left (c x\right ) - c {\left (\frac {2 \, c^{4} x^{6} - 3 \, c^{2} x^{4} + 6 \, x^{2}}{c^{6}} - \frac {6 \, \log \left (c^{2} x^{2} + 1\right )}{c^{8}}\right )}\right )} b c^{4} d^{4} + i \, a c d^{4} x^{4} - \frac {2}{45} i \, {\left (15 \, x^{6} \arctan \left (c x\right ) - c {\left (\frac {3 \, c^{4} x^{5} - 5 \, c^{2} x^{3} + 15 \, x}{c^{6}} - \frac {15 \, \arctan \left (c x\right )}{c^{7}}\right )}\right )} b c^{3} d^{4} - \frac {3}{10} \, {\left (4 \, x^{5} \arctan \left (c x\right ) - c {\left (\frac {c^{2} x^{4} - 2 \, x^{2}}{c^{4}} + \frac {2 \, \log \left (c^{2} x^{2} + 1\right )}{c^{6}}\right )}\right )} b c^{2} d^{4} + \frac {1}{3} \, a d^{4} x^{3} + \frac {1}{3} i \, {\left (3 \, x^{4} \arctan \left (c x\right ) - c {\left (\frac {c^{2} x^{3} - 3 \, x}{c^{4}} + \frac {3 \, \arctan \left (c x\right )}{c^{5}}\right )}\right )} b c d^{4} + \frac {1}{6} \, {\left (2 \, x^{3} \arctan \left (c x\right ) - c {\left (\frac {x^{2}}{c^{2}} - \frac {\log \left (c^{2} x^{2} + 1\right )}{c^{4}}\right )}\right )} b d^{4} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(d+I*c*d*x)^4*(a+b*arctan(c*x)),x, algorithm="maxima")

[Out]

1/7*a*c^4*d^4*x^7 - 2/3*I*a*c^3*d^4*x^6 - 6/5*a*c^2*d^4*x^5 + 1/84*(12*x^7*arctan(c*x) - c*((2*c^4*x^6 - 3*c^2
*x^4 + 6*x^2)/c^6 - 6*log(c^2*x^2 + 1)/c^8))*b*c^4*d^4 + I*a*c*d^4*x^4 - 2/45*I*(15*x^6*arctan(c*x) - c*((3*c^
4*x^5 - 5*c^2*x^3 + 15*x)/c^6 - 15*arctan(c*x)/c^7))*b*c^3*d^4 - 3/10*(4*x^5*arctan(c*x) - c*((c^2*x^4 - 2*x^2
)/c^4 + 2*log(c^2*x^2 + 1)/c^6))*b*c^2*d^4 + 1/3*a*d^4*x^3 + 1/3*I*(3*x^4*arctan(c*x) - c*((c^2*x^3 - 3*x)/c^4
 + 3*arctan(c*x)/c^5))*b*c*d^4 + 1/6*(2*x^3*arctan(c*x) - c*(x^2/c^2 - log(c^2*x^2 + 1)/c^4))*b*d^4

________________________________________________________________________________________

Fricas [A]
time = 1.62, size = 218, normalized size = 1.13 \begin {gather*} \frac {180 \, a c^{7} d^{4} x^{7} - 30 \, {\left (28 i \, a + b\right )} c^{6} d^{4} x^{6} - 168 \, {\left (9 \, a - i \, b\right )} c^{5} d^{4} x^{5} - 9 \, {\left (-140 i \, a - 47 \, b\right )} c^{4} d^{4} x^{4} + 140 \, {\left (3 \, a - 5 i \, b\right )} c^{3} d^{4} x^{3} - 1056 \, b c^{2} d^{4} x^{2} + 2100 i \, b c d^{4} x + 2106 \, b d^{4} \log \left (\frac {c x + i}{c}\right ) + 6 \, b d^{4} \log \left (\frac {c x - i}{c}\right ) - 6 \, {\left (-15 i \, b c^{7} d^{4} x^{7} - 70 \, b c^{6} d^{4} x^{6} + 126 i \, b c^{5} d^{4} x^{5} + 105 \, b c^{4} d^{4} x^{4} - 35 i \, b c^{3} d^{4} x^{3}\right )} \log \left (-\frac {c x + i}{c x - i}\right )}{1260 \, c^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(d+I*c*d*x)^4*(a+b*arctan(c*x)),x, algorithm="fricas")

[Out]

1/1260*(180*a*c^7*d^4*x^7 - 30*(28*I*a + b)*c^6*d^4*x^6 - 168*(9*a - I*b)*c^5*d^4*x^5 - 9*(-140*I*a - 47*b)*c^
4*d^4*x^4 + 140*(3*a - 5*I*b)*c^3*d^4*x^3 - 1056*b*c^2*d^4*x^2 + 2100*I*b*c*d^4*x + 2106*b*d^4*log((c*x + I)/c
) + 6*b*d^4*log((c*x - I)/c) - 6*(-15*I*b*c^7*d^4*x^7 - 70*b*c^6*d^4*x^6 + 126*I*b*c^5*d^4*x^5 + 105*b*c^4*d^4
*x^4 - 35*I*b*c^3*d^4*x^3)*log(-(c*x + I)/(c*x - I)))/c^3

________________________________________________________________________________________

Sympy [A]
time = 3.11, size = 367, normalized size = 1.90 \begin {gather*} \frac {a c^{4} d^{4} x^{7}}{7} - \frac {88 b d^{4} x^{2}}{105 c} + \frac {5 i b d^{4} x}{3 c^{2}} + \frac {b d^{4} \left (\frac {\log {\left (2299 b c d^{4} x - 2299 i b d^{4} \right )}}{210} + \frac {769 \log {\left (2299 b c d^{4} x + 2299 i b d^{4} \right )}}{560}\right )}{c^{3}} + x^{6} \left (- \frac {2 i a c^{3} d^{4}}{3} - \frac {b c^{3} d^{4}}{42}\right ) + x^{5} \left (- \frac {6 a c^{2} d^{4}}{5} + \frac {2 i b c^{2} d^{4}}{15}\right ) + x^{4} \left (i a c d^{4} + \frac {47 b c d^{4}}{140}\right ) + x^{3} \left (\frac {a d^{4}}{3} - \frac {5 i b d^{4}}{9}\right ) + \left (- \frac {i b c^{4} d^{4} x^{7}}{14} - \frac {b c^{3} d^{4} x^{6}}{3} + \frac {3 i b c^{2} d^{4} x^{5}}{5} + \frac {b c d^{4} x^{4}}{2} - \frac {i b d^{4} x^{3}}{6}\right ) \log {\left (i c x + 1 \right )} + \frac {\left (120 i b c^{7} d^{4} x^{7} + 560 b c^{6} d^{4} x^{6} - 1008 i b c^{5} d^{4} x^{5} - 840 b c^{4} d^{4} x^{4} + 280 i b c^{3} d^{4} x^{3} + 501 b d^{4}\right ) \log {\left (- i c x + 1 \right )}}{1680 c^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2*(d+I*c*d*x)**4*(a+b*atan(c*x)),x)

[Out]

a*c**4*d**4*x**7/7 - 88*b*d**4*x**2/(105*c) + 5*I*b*d**4*x/(3*c**2) + b*d**4*(log(2299*b*c*d**4*x - 2299*I*b*d
**4)/210 + 769*log(2299*b*c*d**4*x + 2299*I*b*d**4)/560)/c**3 + x**6*(-2*I*a*c**3*d**4/3 - b*c**3*d**4/42) + x
**5*(-6*a*c**2*d**4/5 + 2*I*b*c**2*d**4/15) + x**4*(I*a*c*d**4 + 47*b*c*d**4/140) + x**3*(a*d**4/3 - 5*I*b*d**
4/9) + (-I*b*c**4*d**4*x**7/14 - b*c**3*d**4*x**6/3 + 3*I*b*c**2*d**4*x**5/5 + b*c*d**4*x**4/2 - I*b*d**4*x**3
/6)*log(I*c*x + 1) + (120*I*b*c**7*d**4*x**7 + 560*b*c**6*d**4*x**6 - 1008*I*b*c**5*d**4*x**5 - 840*b*c**4*d**
4*x**4 + 280*I*b*c**3*d**4*x**3 + 501*b*d**4)*log(-I*c*x + 1)/(1680*c**3)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(d+I*c*d*x)^4*(a+b*arctan(c*x)),x, algorithm="giac")

[Out]

sage0*x

________________________________________________________________________________________

Mupad [B]
time = 0.64, size = 205, normalized size = 1.06 \begin {gather*} \frac {c^4\,d^4\,\left (180\,a\,x^7+180\,b\,x^7\,\mathrm {atan}\left (c\,x\right )\right )}{1260}+\frac {d^4\,\left (420\,a\,x^3+420\,b\,x^3\,\mathrm {atan}\left (c\,x\right )-b\,x^3\,700{}\mathrm {i}\right )}{1260}-\frac {\frac {d^4\,\left (-1056\,b\,\ln \left (c^2\,x^2+1\right )+b\,\mathrm {atan}\left (c\,x\right )\,2100{}\mathrm {i}\right )}{1260}+\frac {88\,b\,c^2\,d^4\,x^2}{105}-\frac {b\,c\,d^4\,x\,5{}\mathrm {i}}{3}}{c^3}+\frac {c\,d^4\,\left (a\,x^4\,1260{}\mathrm {i}+423\,b\,x^4+b\,x^4\,\mathrm {atan}\left (c\,x\right )\,1260{}\mathrm {i}\right )}{1260}-\frac {c^3\,d^4\,\left (a\,x^6\,840{}\mathrm {i}+30\,b\,x^6+b\,x^6\,\mathrm {atan}\left (c\,x\right )\,840{}\mathrm {i}\right )}{1260}-\frac {c^2\,d^4\,\left (1512\,a\,x^5+1512\,b\,x^5\,\mathrm {atan}\left (c\,x\right )-b\,x^5\,168{}\mathrm {i}\right )}{1260} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*(a + b*atan(c*x))*(d + c*d*x*1i)^4,x)

[Out]

(d^4*(420*a*x^3 - b*x^3*700i + 420*b*x^3*atan(c*x)))/1260 - ((d^4*(b*atan(c*x)*2100i - 1056*b*log(c^2*x^2 + 1)
))/1260 + (88*b*c^2*d^4*x^2)/105 - (b*c*d^4*x*5i)/3)/c^3 + (c^4*d^4*(180*a*x^7 + 180*b*x^7*atan(c*x)))/1260 +
(c*d^4*(a*x^4*1260i + 423*b*x^4 + b*x^4*atan(c*x)*1260i))/1260 - (c^3*d^4*(a*x^6*840i + 30*b*x^6 + b*x^6*atan(
c*x)*840i))/1260 - (c^2*d^4*(1512*a*x^5 - b*x^5*168i + 1512*b*x^5*atan(c*x)))/1260

________________________________________________________________________________________